package cn.fsw.pethome.base.mapper;

import cn.fsw.pethome.base.query.Page;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface BaseMapper<T> {
    List<T> selectAll();
    T selectById(Long id);
    void add(T t);
    void update(T t);
    void delete(Long id);
    List<T> pageSelevtAll(Page query);
    Long count(Page query);
}
